home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’97
/
Appearance Mangler
/
Read Me
< prev
Wrap
Text File
|
1997-06-27
|
1KB
|
27 lines
The Appearance Mangler - The ultimate user interface experience.
Concept and design by Jon Gotow (gotow@stclairsw.com).
Assistance and support from Greg Landwebber.
This doodad is a simple hack that is built to run beneath Kaleidoscope
(version 1.5.1 works best - see below for an explanation of why). It
causes Kscope to draw interface elements from different schemes at
random, resulting in a bit of a schizophrenic GUI.
What Appearance Mangler does is patch GetCIcon() so that a random
Kaleidoscope scheme file is open when GetCIcon() is called. Since
Kscope stores almost all appearances in 'cicn' resources, this makes
for a pretty interesting interface. GetPixPat is also patched to
deal with patterns in window title bars (but not menus, because of
some really nasty visual glitches).
This stuff will not work well with Kaleidoscope 1.6 and 1.7, because
they cache lots of this stuff instead of loading it on the fly. And
yes, opening and closing the resource files everytime is slow as hell.
If the hack contest wasn't in 10 minutes, I'd probably juggle the
resource file chain to avoid this.
NOTE FROM GREG: _DO_NOT_ USE THIS METHOD TO IMPLEMENT A SCHEME SWITCHER!
THERE ARE BETTER WAYS TO DO THIS.